/*
 * TCSS 422 - Spring quarter 2011
 * Team: 	Googlers
 * Members: Deepa Sahni, Krisnil Gounder, Michael Schweiger
 * Date: 	April 7, 2011
 */
package buffers;

/**
 * A simple buffer that holds strings.  This buffer can not accept nulls.  This object
 * is a singleton style object.  This class is thread safe.
 * @author Michael Schweiger
 * @version 1.0
 */
public class PageBuffer extends Buffer<String> {

	/**
	 * The private singleton instantiation of this buffer.
	 */
	private static final PageBuffer my_instance = new PageBuffer();
	
	/**
	 * Private constructor to prevent external instantiation.  
	 */
	private PageBuffer() {
		super(false);
	}
	
	/**
	 * The method for obtaining the singleton instance of this buffer.
	 * @return The instance of this buffer.
	 */
	public static PageBuffer getInstance() {
		return my_instance;
	}
}
